package com.sophialex.health.record.common.bind.swt.annotations.helper;

import java.lang.reflect.Field;

import com.sophialex.health.record.common.bind.swt.annotations.ComboDataBindTo;
import com.sophialex.health.record.common.bind.swt.annotations.ListPathComboDataBindTo;

public abstract class ComboBindHelper {
	public static ComboBindHelper getInstance(Field f) {
		if (f.getAnnotation(ComboDataBindTo.class) != null)
			return new ComboBindToHelper(f);
		else if (f.getAnnotation(ListPathComboDataBindTo.class) != null)
			return new ListComboBindToHelper(f);
		else return null;
	}

	public abstract String getDataPath();

	public abstract String getBeanPath();
	
	public abstract String toString();
}
